﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Activities;
using System.ComponentModel;
using System.Activities.Presentation;
using Wilke.Interactive.Drone.Control.Enumerations;
using Wilke.Interactive.Drone.Contracts;
using System.Drawing;

namespace Wilke.Interactive.Drone.Extensions.Activities
{
    [Designer(typeof(StartVideoDesigner))]
    [ToolboxBitmap(typeof(PathDesigner), "Resources.Icons.StartVideo.png")]
    public class StartVideoActivity : BaseActivity
    {
        #region Construction

       

        #endregion

        protected override void Execute(CodeActivityContext context)
        {
            base.Execute(context);
            if (DroneCommander != null)
            {
                DroneCommander.StartRecordVideo();
            }
            else
            {
                throw new Exception("Could not retrieve an active instance of 'DroneCommander'");
            }
        }
    }
}
